//
//  UIView+Extension.h


#import <Foundation/Foundation.h>

@interface NSString (Extension)
/**
 *  返回字符串所占用的尺寸
 *
 *  @param font    字体
 *  @param maxSize 最大尺寸
 */
- (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;

- (CGFloat)heightWithFont:(UIFont *)font lineSpace:(CGFloat)space maxWidth:(CGFloat)width;

- (NSString *)stringByTrimingWhitespace;

- (NSUInteger)numberOfLines;

- (NSString *)MD5Hash;

//解析json格式的字符串
- (id)jsonString;

@end
